//
//  ReadingFirstPageHeaderView.m
//  SunXi
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 大远. All rights reserved.
//

#import "ReadingFirstPageHeaderView.h"

@implementation ReadingFirstPageHeaderView

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create{
    
    self.scroll = [[DyScrollView alloc] initWithFrame:self.bounds];
    [self addSubview:self.scroll];
    
  

}

- (void)setArr:(NSMutableArray *)arr{
    _arr = arr;
    [self newData];
   
}


- (void)newData
{
    [self.scroll createView:self.arr width:self.frame.size.width];
    self.scroll.delegate = self;
}



- (void)takeValue:(NSInteger)TouchValue{
    [self.delegate takeVale:TouchValue];

}





@end
